package controlLayer;



import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import modelLayer.*;
/**
 * The test class DvdCtrTest.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class DvdCtrTest
{
    /**
     * Default constructor for test class DvdCtrTest
     */
    public DvdCtrTest()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }

    @Test
    public void AddMovies()
    {
        controlLayer.DvdCtr dvdCtr1 = new controlLayer.DvdCtr();
        dvdCtr1.createDVD("123", "tarzan", "disney", "1-1-1998");
        dvdCtr1.createDVD("456", "snehvide", "disney", "1-1-1970");
    }
    
    
    @Test
    public void AddCopes()
    {
        controlLayer.DvdCtr dvdCtr1 = new controlLayer.DvdCtr();
        DVD dvd = dvdCtr1.getDVD("snehvide");
        dvd.addCopy(new Copy("ert", "dags dato", 2, dvd));
        dvd.addCopy(new Copy("yui", "dags dato", 34, dvd));
        DVD tarzan = dvdCtr1.getDVD("tarzan");
        tarzan.addCopy(new Copy("asd", "dags dato", 34, dvd));
    }
}

